public class TestList {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);
        System.out.println(myLinkedList.size());
        myLinkedList.display();
        //myLinkedList.remove(1);
        //myLinkedList.display();
        // myLinkedList.removeAllKey(2);
        myLinkedList.addIndex(3,7);
        myLinkedList.display();
        myLinkedList.clear();
        myLinkedList.display();
        System.out.println(myLinkedList.contains(1));
    }
}
